package com.photoveil;

import java.util.List;

import android.widget.ImageView;

public class ThumbnailHelper {
	
	private static ThumbnailHelper thumbnailHelper = new ThumbnailHelper();
	
	public static ThumbnailHelper getInstance() {
		return thumbnailHelper;
	}
	
	public void clearBackgrounds(List<Thumbnail> thumbnails) {
		int size = thumbnails.size();
		for (int i=0; i < size; i++) {
			thumbnails.get(i).getThumbnailImage().setBackgroundResource(R.color.trans);
		}
	}
	
	public void setHighlightedBackground(ImageView thumbnail) {
		thumbnail.setBackgroundResource(R.layout.highlight_border);
	}
}
